home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / Data.cab / _58B1D5D470F2404CB739DAD928338545 < prev    next >
Encoding:
Text File  |  2004-06-24  |  967 b   |  41 lines

  1. shader()
  2. {
  3.     pass()
  4.     {
  5.        Lighting()
  6.        tmu()
  7.         {
  8.             TexGen("planar")
  9.             TexMod("scale", "const", %terrainsize, 0, 0, "const", %terrainsize, 0, 0)
  10.             texture()
  11.             {
  12.                 Image(%colortexture)
  13.                 addressfunc("clamp", "clamp", "clamp")
  14.             }
  15.         }
  16.  
  17.         tmu()
  18.         {
  19.             TexGen("planar")
  20.             TexMod("scale", "const", 0.00256, 0, 0, "const", 0.00256, 0, 0)
  21.             texture()
  22.             {
  23.                 Image("Grid.png")
  24.                 addressfunc("wrap", "wrap", "wrap")
  25.                 filtering("anisotropic_mip_linear")
  26.                 anisotropy(8)
  27.             }
  28.         }
  29.    
  30.         AmbientColor(0.250, 0.250, 0.250, 1.000)
  31.         DiffuseColor(1.000, 1.000, 1.000, 0.5000)
  32.         SpecularColor(0.500, 0.500, 0.500, 1.000)
  33.         EmissiveColor(0.000, 0.000, 0.000, 1.000)
  34.         SpecularPow(20.000)
  35.    }
  36.  
  37.     cull("ccw")
  38.  
  39. }
  40.  
  41.